<template>
  <div>
    <p>count: {{count}}, 当前count为: {{evenOrOdd}}</p>
  </div>
</template>

<script>
export default {
  name: 'CounterShow',
  props: ['count'],

  computed: {
    evenOrOdd () {
      return this.count%2===1 ? '奇数' : '偶数'
    }
  }
}
</script>

<style scoped>

</style>
